package com.ruoyi.find.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.find.mapper.DeveloperMapper;
import com.ruoyi.find.domain.Developer;
import com.ruoyi.find.service.IDeveloperService;

/**
 * 开发商信息Service业务层处理
 * 
 * @author yang
 * @date 2025-09-22
 */
@Service
public class DeveloperServiceImpl implements IDeveloperService 
{
    @Autowired
    private DeveloperMapper developerMapper;

    /**
     * 查询开发商信息
     * 
     * @param developerId 开发商信息主键
     * @return 开发商信息
     */
    @Override
    public Developer selectDeveloperByDeveloperId(Long developerId)
    {
        return developerMapper.selectDeveloperByDeveloperId(developerId);
    }

    /**
     * 查询开发商信息列表
     * 
     * @param developer 开发商信息
     * @return 开发商信息
     */
    @Override
    public List<Developer> selectDeveloperList(Developer developer)
    {
        return developerMapper.selectDeveloperList(developer);
    }

    /**
     * 新增开发商信息
     * 
     * @param developer 开发商信息
     * @return 结果
     */
    @Override
    public int insertDeveloper(Developer developer)
    {
        return developerMapper.insertDeveloper(developer);
    }

    /**
     * 修改开发商信息
     * 
     * @param developer 开发商信息
     * @return 结果
     */
    @Override
    public int updateDeveloper(Developer developer)
    {
        return developerMapper.updateDeveloper(developer);
    }

    /**
     * 批量删除开发商信息
     * 
     * @param developerIds 需要删除的开发商信息主键
     * @return 结果
     */
    @Override
    public int deleteDeveloperByDeveloperIds(Long[] developerIds)
    {
        return developerMapper.deleteDeveloperByDeveloperIds(developerIds);
    }

    /**
     * 删除开发商信息信息
     * 
     * @param developerId 开发商信息主键
     * @return 结果
     */
    @Override
    public int deleteDeveloperByDeveloperId(Long developerId)
    {
        return developerMapper.deleteDeveloperByDeveloperId(developerId);
    }
}
